/**
 * New node file
 */
var url = require('url');
var router = function(req, res){
	//TODO::把地址解析出来
	
}

router.parsePath  = function(req){
	var pathname = url.parse(req.url).pathname;
	var paths = pathname.split('/');
	var controller = paths[1] || 'index';
	var action = paths[2] || 'index';
	var args 
}

/**
 * 路由开始
 */
router.run = function(){
	//TODO::运行指定的cotroller
	
}

router.end = function(){
	
}
